Diagnosis of hearing impairment